﻿@model G15_Agent.Models.ViewModels.AirplaneSearchViewModel
@using G15_Agent.Helpers
@using G15_Agent.Models.ViewModels

@section PageScripts
{
    <style type="text/css">
        .control-label
        {        	
        	margin-right: 10px;        	 	    	
        }
        .control
        {
        	margin-right: 10px;
        }
        .datetime
        {
        	width: 80px;
        }
        legend
        {
        	margin-bottom: 10px;
        }
        label
        {
        	display: inline-block;
        }
        label.radio
        {
        	display: block;
        }
        #lo-trinh-bay .control-label
        {
        	width: 60px;
        }
        
    </style>
}
                
@{
    ViewBag.Title = "Dịch vụ hàng không";
    ViewBag.PageHeading = "Tìm kiếm dịch vụ hàng không";
    ViewBag.AsideHeading = "Quảng cáo";
}

@using (Html.BeginForm("AirplaneSearch", "Airplane", FormMethod.Post, new { @class = "form-inline" }))
{    
    <fieldset id="thong-tin-ve">
        <legend>Thông tin vé</legend>       
            @Html.LabelFor(m => m.type, new { @class = "control-label" })
            @Html.DropDownListFor(m => m.type, Model.dsLoaiVe, new { @class="control"})
            <br />
            <br />              
            <label class="radio">
                @Html.RadioButtonFor(m => m.typeTrip, "Khu Hoi", new { @name = "typetrip", @checked = "checked" })
                Khứ hồi
            </label>

            <label class="radio">
                @Html.RadioButtonFor(m => m.typeTrip, "Mot Chieu", new { @name = "typetrip" })
                Một chiều
            </label>
    </fieldset>

    <fieldset id="lo-trinh-bay">
        <legend>Lộ trình bay</legend>
        <div class="control-group">
            @Html.LabelFor(m => m.maDiemDi, new { @class = "control-label " })
            @Html.DropDownListFor(m => m.maDiemDi, Model.dsDiemDi, new { @class = "control input-medium" })
        
            @Html.LabelFor(m => m.tgDi, new { @class = "control-label" })
            @Html.EditorFor(m => m.tgDi)
        </div>
        <div class="control-group">
            @Html.LabelFor(m => m.maDiemDen, new { @class = "control-label " })
            @Html.DropDownListFor(m => m.maDiemDen, Model.dsDiemDen, new { @class = "control input-medium" })
        
            @Html.LabelFor(m => m.tgDen, new { @class = "control-label " })
            @Html.EditorFor(m => m.tgDen)
        </div>
    </fieldset>
    
    <fieldset id="thong-tin-hanh-khach">
        <legend>Thông tin hành khách</legend>
        <div class="control-group">
            @Html.LabelFor(m => m.slLon, new { @class = "control-label" })
            @Html.DropDownListFor(m => m.slLon, Model.optionSoLuong, new { @class = "control span1" })

            @Html.LabelFor(m => m.slNho, new { @class = "control-label" })
            @Html.DropDownListFor(m => m.slNho, Model.optionSoLuong, new { @class = "control span1" })
        </div>
    </fieldset>
    @Html.HiddenFor(m => m.serviceID)
    <input type="submit" value="Tìm kiếm" class="btn btn-primary"/>
}
